package com.hospital.pharmacy.entity;

import java.util.ArrayList;
import java.util.List;

public class InventoryInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InventoryInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMdcNumIsNull() {
            addCriterion("mdc_num is null");
            return (Criteria) this;
        }

        public Criteria andMdcNumIsNotNull() {
            addCriterion("mdc_num is not null");
            return (Criteria) this;
        }

        public Criteria andMdcNumEqualTo(String value) {
            addCriterion("mdc_num =", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumNotEqualTo(String value) {
            addCriterion("mdc_num <>", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumGreaterThan(String value) {
            addCriterion("mdc_num >", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumGreaterThanOrEqualTo(String value) {
            addCriterion("mdc_num >=", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumLessThan(String value) {
            addCriterion("mdc_num <", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumLessThanOrEqualTo(String value) {
            addCriterion("mdc_num <=", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumLike(String value) {
            addCriterion("mdc_num like", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumNotLike(String value) {
            addCriterion("mdc_num not like", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumIn(List<String> values) {
            addCriterion("mdc_num in", values, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumNotIn(List<String> values) {
            addCriterion("mdc_num not in", values, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumBetween(String value1, String value2) {
            addCriterion("mdc_num between", value1, value2, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumNotBetween(String value1, String value2) {
            addCriterion("mdc_num not between", value1, value2, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNameIsNull() {
            addCriterion("mdc_name is null");
            return (Criteria) this;
        }

        public Criteria andMdcNameIsNotNull() {
            addCriterion("mdc_name is not null");
            return (Criteria) this;
        }

        public Criteria andMdcNameEqualTo(String value) {
            addCriterion("mdc_name =", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameNotEqualTo(String value) {
            addCriterion("mdc_name <>", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameGreaterThan(String value) {
            addCriterion("mdc_name >", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameGreaterThanOrEqualTo(String value) {
            addCriterion("mdc_name >=", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameLessThan(String value) {
            addCriterion("mdc_name <", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameLessThanOrEqualTo(String value) {
            addCriterion("mdc_name <=", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameLike(String value) {
            addCriterion("mdc_name like", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameNotLike(String value) {
            addCriterion("mdc_name not like", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameIn(List<String> values) {
            addCriterion("mdc_name in", values, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameNotIn(List<String> values) {
            addCriterion("mdc_name not in", values, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameBetween(String value1, String value2) {
            addCriterion("mdc_name between", value1, value2, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameNotBetween(String value1, String value2) {
            addCriterion("mdc_name not between", value1, value2, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcUnitIsNull() {
            addCriterion("mdc_unit is null");
            return (Criteria) this;
        }

        public Criteria andMdcUnitIsNotNull() {
            addCriterion("mdc_unit is not null");
            return (Criteria) this;
        }

        public Criteria andMdcUnitEqualTo(String value) {
            addCriterion("mdc_unit =", value, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcUnitNotEqualTo(String value) {
            addCriterion("mdc_unit <>", value, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcUnitGreaterThan(String value) {
            addCriterion("mdc_unit >", value, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcUnitGreaterThanOrEqualTo(String value) {
            addCriterion("mdc_unit >=", value, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcUnitLessThan(String value) {
            addCriterion("mdc_unit <", value, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcUnitLessThanOrEqualTo(String value) {
            addCriterion("mdc_unit <=", value, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcUnitLike(String value) {
            addCriterion("mdc_unit like", value, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcUnitNotLike(String value) {
            addCriterion("mdc_unit not like", value, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcUnitIn(List<String> values) {
            addCriterion("mdc_unit in", values, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcUnitNotIn(List<String> values) {
            addCriterion("mdc_unit not in", values, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcUnitBetween(String value1, String value2) {
            addCriterion("mdc_unit between", value1, value2, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcUnitNotBetween(String value1, String value2) {
            addCriterion("mdc_unit not between", value1, value2, "mdcUnit");
            return (Criteria) this;
        }

        public Criteria andMdcSpecIsNull() {
            addCriterion("mdc_spec is null");
            return (Criteria) this;
        }

        public Criteria andMdcSpecIsNotNull() {
            addCriterion("mdc_spec is not null");
            return (Criteria) this;
        }

        public Criteria andMdcSpecEqualTo(String value) {
            addCriterion("mdc_spec =", value, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andMdcSpecNotEqualTo(String value) {
            addCriterion("mdc_spec <>", value, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andMdcSpecGreaterThan(String value) {
            addCriterion("mdc_spec >", value, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andMdcSpecGreaterThanOrEqualTo(String value) {
            addCriterion("mdc_spec >=", value, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andMdcSpecLessThan(String value) {
            addCriterion("mdc_spec <", value, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andMdcSpecLessThanOrEqualTo(String value) {
            addCriterion("mdc_spec <=", value, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andMdcSpecLike(String value) {
            addCriterion("mdc_spec like", value, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andMdcSpecNotLike(String value) {
            addCriterion("mdc_spec not like", value, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andMdcSpecIn(List<String> values) {
            addCriterion("mdc_spec in", values, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andMdcSpecNotIn(List<String> values) {
            addCriterion("mdc_spec not in", values, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andMdcSpecBetween(String value1, String value2) {
            addCriterion("mdc_spec between", value1, value2, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andMdcSpecNotBetween(String value1, String value2) {
            addCriterion("mdc_spec not between", value1, value2, "mdcSpec");
            return (Criteria) this;
        }

        public Criteria andIvtrCountIsNull() {
            addCriterion("ivtr_count is null");
            return (Criteria) this;
        }

        public Criteria andIvtrCountIsNotNull() {
            addCriterion("ivtr_count is not null");
            return (Criteria) this;
        }

        public Criteria andIvtrCountEqualTo(Integer value) {
            addCriterion("ivtr_count =", value, "ivtrCount");
            return (Criteria) this;
        }

        public Criteria andIvtrCountNotEqualTo(Integer value) {
            addCriterion("ivtr_count <>", value, "ivtrCount");
            return (Criteria) this;
        }

        public Criteria andIvtrCountGreaterThan(Integer value) {
            addCriterion("ivtr_count >", value, "ivtrCount");
            return (Criteria) this;
        }

        public Criteria andIvtrCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("ivtr_count >=", value, "ivtrCount");
            return (Criteria) this;
        }

        public Criteria andIvtrCountLessThan(Integer value) {
            addCriterion("ivtr_count <", value, "ivtrCount");
            return (Criteria) this;
        }

        public Criteria andIvtrCountLessThanOrEqualTo(Integer value) {
            addCriterion("ivtr_count <=", value, "ivtrCount");
            return (Criteria) this;
        }

        public Criteria andIvtrCountIn(List<Integer> values) {
            addCriterion("ivtr_count in", values, "ivtrCount");
            return (Criteria) this;
        }

        public Criteria andIvtrCountNotIn(List<Integer> values) {
            addCriterion("ivtr_count not in", values, "ivtrCount");
            return (Criteria) this;
        }

        public Criteria andIvtrCountBetween(Integer value1, Integer value2) {
            addCriterion("ivtr_count between", value1, value2, "ivtrCount");
            return (Criteria) this;
        }

        public Criteria andIvtrCountNotBetween(Integer value1, Integer value2) {
            addCriterion("ivtr_count not between", value1, value2, "ivtrCount");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitIsNull() {
            addCriterion("ivtr_limit is null");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitIsNotNull() {
            addCriterion("ivtr_limit is not null");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitEqualTo(Integer value) {
            addCriterion("ivtr_limit =", value, "ivtrLimit");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitNotEqualTo(Integer value) {
            addCriterion("ivtr_limit <>", value, "ivtrLimit");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitGreaterThan(Integer value) {
            addCriterion("ivtr_limit >", value, "ivtrLimit");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitGreaterThanOrEqualTo(Integer value) {
            addCriterion("ivtr_limit >=", value, "ivtrLimit");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitLessThan(Integer value) {
            addCriterion("ivtr_limit <", value, "ivtrLimit");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitLessThanOrEqualTo(Integer value) {
            addCriterion("ivtr_limit <=", value, "ivtrLimit");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitIn(List<Integer> values) {
            addCriterion("ivtr_limit in", values, "ivtrLimit");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitNotIn(List<Integer> values) {
            addCriterion("ivtr_limit not in", values, "ivtrLimit");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitBetween(Integer value1, Integer value2) {
            addCriterion("ivtr_limit between", value1, value2, "ivtrLimit");
            return (Criteria) this;
        }

        public Criteria andIvtrLimitNotBetween(Integer value1, Integer value2) {
            addCriterion("ivtr_limit not between", value1, value2, "ivtrLimit");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}